package com.pink.entity.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class AppConfig {

    @Value("${spring.mail.password:}")
    private String mailPassword;

    @Value("${spring.mail.username:}")
    private String mailUsername;

    @Value("${spring.security.ApiUrl:}")
    private String WebUrl;

    @Value("${spring.security.jwt.key:}")
    private String Key;

    @Value("${spring.security.jwt.expire:}")
    private int expire;

    @Value("${ffmpeg.url:}")
    private String ffmpegPath;

    @Value("${project.folder:}")
    private String projectFolder;

    @Value("${ffmpeg.Log:}")
    private Boolean ShowFFmpegLog;

    @Value("${project.UpdataSize:}")
    private Boolean UpdataSize;

    @Value("${project.separator}")
    private String separator;

    public String getWebUrl() {
         if(WebUrl == null) return null;
         return WebUrl;
    }
    public  String getKey() {
        return Key;
    }

    public int getExpire() {
        return expire;
    }

    public String getEmailUserName(){
        return mailUsername;
    }

    public String getAvatarUrl() {
        return "https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png";
    }

    public String getFfmpegPath() {
        return ffmpegPath;
    }

    public String getProjectFolder() {
        return projectFolder;
    }

    public Boolean getShowFFmpegLog() {
        return ShowFFmpegLog;
    }

    public Boolean getUpdataSize() {
        return UpdataSize;
    }

    public String getSeparator() {
        return separator;
    }
}
